import Vue from 'vue'
import VueRouter from 'vue-router'

import Header from '../components/Header.vue'
import Home from '@/views/Home'
import Hotmusic from '../components/Hotmusic'
import UserCont from '../components/UserCont.vue'
import tuijian from '../components//tuijian'
import remen from '../components//remen'
import paihang from '../components//paihang'
import youqing from '../components//youqing'
import Footer from '../components//Footer'
import Song from '../components/Song.vue'
import Singer from '../views/Singer.vue'
import List from '../views/List.vue'
import Login from '../components/Login.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login,
  },
  {
    path: '/index',
    name: 'Home',
    component: Home,
  },

  {
    path: '/sing',
    name: 'Song',
    component: Song,
  },
  {
    path: '/singer',
    name: 'Singer',
    component: Singer,
  },
  {
    path: '/list',
    name: 'List',
    component: List,
  },
  {
    path: '/user',
    name: 'UserCont',
    component: UserCont,
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes,
})

export default router
